cody - HTMLify profile

cody
4270 Files
632820 Views
Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/175 - T-rex runner Game
const dino = document.getElementById("dino");
const cactus = document.getElementById("cactus")
const txt = document.getElementById("txt")
const butt = document.getElementById("btn")
function jump() {
if (dino.classList != "jump") {
dino.classList.add("jump");
const cactus = document.getElementById("cactus")
const txt = document.getElementById("txt")
const butt = document.getElementById("btn")
function jump() {
if (dino.classList != "jump") {
dino.classList.add("jump");
*{
padding: 0;
margin: 0;
}
.game {
/* width: 3000px;
height: 1000px; */
width: 600px;
padding: 0;
margin: 0;
}
.game {
/* width: 3000px;
height: 1000px; */
width: 600px;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">